package ${package_pojo};
<#if swagger==true>
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
</#if>
import javax.persistence.*;
import java.io.Serializable;
import lombok.Data;
<#list typeSet as set>
import ${set};
</#list>

/**
 * @Author : 残影  
 * @Date: 2020/7/29 13:53
 */
@Data
@Table(name="${TableName}")
<#if swagger==true>
@ApiModel("${Table}")
</#if>
public class ${Table} implements Serializable{
<#list models as model>
	<#if model.id==true>
	@Id
	<#if model.identity=='YES'>
    @GeneratedValue(strategy = GenerationType.IDENTITY)
	</#if>
	</#if>
    <#if swagger==true>
    @ApiModelProperty("${model.desc!""}")
    </#if>
	private ${model.simpleType} ${model.name};

</#list>
}
